﻿using System;

namespace Gonte.Xml.Serialization
{
    /// <summary>
    /// Provides parameter information that allows to call a constructor different than the default one
    /// </summary>
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = false)]
    public class XmlConstructorParameterAttribute
        : Attribute
    {
        #region Properties

        public Type ParameterType
        {
            get { return parameterType_; }
            set { parameterType_ = value; }
        }

        public string AttributeName
        {
            get { return attributeName_; }
            set { attributeName_ = value; }
        } 

        #endregion

        #region Fields

        private Type parameterType_;
        private string attributeName_; 

        #endregion

    }
}
